package com.albert;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;

public class TimeTest4 {
    public static void main(String[] args) {
        //String originalTime = "22024-10-28T01:18:49.2430114Z";
        //String originalTime = "22024-10-28T01:18:49.2430114Z";
        String originalTime = "22024-10-28T01:18:49Z";
        Instant instant = Instant.parse(originalTime);
        LocalDateTime beijingTime = LocalDateTime.ofInstant(instant, ZoneOffset.ofHours(8));
        System.out.println(beijingTime);
    }
}
